<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<ul class="nav nav-tabs">
    <li class="active"><a aria-expanded="true" href="#tab-1" data-toggle="tab"> 系统数据配置</a>
    </li>
    <li class=""><a aria-expanded="false" href="#tab-2" data-toggle="tab">运营数据配置</a>
    </li>
    <li class=""><a aria-expanded="false" href="#tab-3" data-toggle="tab">第三方数据配置</a>
    </li>
</ul>
<div class="tab-content">
    <div class="tab-pane active" id="tab-1">
        <div class="panel-body">
            <div class="oc-ibox-content">
                <div class="table-responsive pt10">
                    <div class="row">
                        <div class="noDataTipsBox" th:if="${#lists.isEmpty(sysConfigList1)}">
                            <p><span class="c-4e fs16">亲，还没有配置数据~~~</span></p>
                        </div>
                        <div th:if="!${#lists.isEmpty(sysConfigList1)} and ${config['configType']} !='INITID'"  th:each="config : ${sysConfigList1}">
                            <section class="col-sm-6">
                                <div class="caption row">
                                    <div class="col-sm-8">
                                        <div><strong class="fs16" th:text="${config['configName']}"></strong></div>
                                        <p class="c-999 pt10" th:text="${#strings.isEmpty(config['depict'])}?'未配置':${config['depict']}"></p>
                                    </div>
                                    <div class="col-sm-4">
                                        <p>
                                            <a th:if="${config['configType']}!='LINK'" th:attrappend="data-id=${config['id']}" class="show-config-info-box btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}!='LINK'" th:href="@{/admin/manage/config/initUpdateConfig?id={id}(id=${config['id']})}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                            <a th:if="${config['configType']}=='LINK'" th:href="@{/admin/manage/link/initLinkConfigList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}=='LINK'" th:href="@{/admin/manage/link/initLinkConfigList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                        </p>
                                    </div>
                                </div>
                                <hr>
                            </section>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="tab-pane" id="tab-2">
        <div class="panel-body">
            <div class="oc-ibox-content">
                <div class="table-responsive pt10">
                    <div class="row">
                        <div class="noDataTipsBox" th:if="${#lists.isEmpty(sysConfigList2)}">
                            <p><span class="c-4e fs16">亲，还没有配置数据~~~</span></p>
                        </div>
                        <div th:if="!${#lists.isEmpty(sysConfigList2)}  and ${config['configType']}!='WECHATSERVICE'  and ${config['configType']} !='QAREFUND'" th:each="config : ${sysConfigList2}">

                            <section class="col-sm-6">
                                <div class="caption row">
                                    <div class="col-sm-8">
                                        <div><strong class="fs16" th:text="${config['configName']}"></strong></div>
                                        <p class="c-999 pt10" th:text="${#strings.isEmpty(config['depict'])}?'未配置':${config['depict']}"></p>
                                    </div>
                                    <div class="col-sm-4">
                                        <p>
                                            <a th:if="${config['configType']}=='INTEGRAL'" th:href="@{/admin/user/cus/toCusUserIntegralRuleListPage}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}=='INTEGRAL'" th:href="@{/admin/user/cus/toCusUserIntegralRuleListPage}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                            <a th:if="${config['configType']}=='EXP'" th:href="@{/admin/user/cus/userExpruleList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}=='EXP'" th:href="@{/admin/user/cus/userExpruleList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                            <a th:if="${config['configType']}=='LEVEL'" th:href="@{/admin/user/cus/gradeConfigList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}=='LEVEL'" th:href="@{/admin/user/cus/gradeConfigList}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                            <a th:if="${config['configType']}!='LEVEL'     and ${config['configType']}!='EXP' and ${config['configType']}!='INTEGRAL'" th:attrappend="data-id=${config['id']}" class="show-config-info-box btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" role="button">查看</a>
                                            <a th:if="${config['configType']}!='LEVEL'  and ${config['configType']}!='EXP' and ${config['configType']}!='INTEGRAL'" th:href="@{/admin/manage/config/initUpdateConfig?id={id}(id=${config['id']})}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                        </p>
                                    </div>
                                </div>
                                <hr>
                            </section>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="tab-pane" id="tab-3">
        <div class="panel-body">
            <div class="oc-ibox-content">
                <div class="table-responsive pt10">
                    <div class="row">
                        <div class="noDataTipsBox" th:if="${#lists.isEmpty(sysConfigList3)}">
                            <p><span class="c-4e fs16">亲，还没有配置数据~~~</span></p>
                        </div>
                        <div th:if="!${#lists.isEmpty(sysConfigList3)}" th:each="config : ${sysConfigList3}">
                            <th:block th:if="${config['configType']} !=''">
                                <th:block th:if="${config['configType']}!='SMS' and ${config['configType']}!='ATTENT'">


                                    <section class="col-sm-6">
                                        <div class="caption row">
                                            <div class="col-sm-8">
                                                <div><strong class="fs16" th:text="${config['configName']}"></strong></div>
                                                <p class="c-999 pt10" th:text="${#strings.isEmpty(config['depict'])}?'未配置':${config['depict']}"></p>
                                            </div>
                                            <div class="col-sm-4">
                                                <p>
                                                    <a th:attrappend="data-id=${config['id']}" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='查看'+${config['configName']}+'详情'" class="btn btn-outline btn-primary btn-sm show-config-info-box teacher-delete-btn" role="button">查看</a>
                                                    <a th:href="@{/admin/manage/config/initUpdateConfig?id={id}(id=${config['id']})}" class="btn btn-outline btn-primary btn-sm" data-toggle="tooltip" data-placement="top" th:attr="data-original-title='修改'+${config['configName']}" role="button">修改</a>
                                                </p>
                                            </div>
                                        </div>
                                        <hr>
                                    </section>
                                </th:block>
                            </th:block>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
</html>

